package com.sync.syncmasterdata.customer.pojo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;

/**
 * 云枢 获取 表单明细列表
 */
@Data
public class CPClassList {

    @JsonProperty(value = "data")
    private ObjData objData;

    @JsonProperty(value = "errcode")
    private int errcode;

    @JsonProperty(value = "errmsg")
    private String errmsg;

    public List<Object> getList() {
        return this.objData.getContent();
    }
}

@Data
class ObjData {
    @JsonProperty(value = "content")
    private List<Object> content;

}

@Data
class DataContent {
    @JsonProperty(value = "data")
    private Object data;
    @JsonProperty(value = "id")
    private String id;
    @JsonProperty(value = "name")
    private String name;
}
